package com.px.mapper;

import com.px.pojo.ShUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShUserMapper {

    //获取用户信息列表
    List<ShUser> selectUserList(@Param("userName") String userName, @Param("id") Integer id,
                                @Param("pageBegin") Integer pageBegin, @Param("pageSize") Integer pageSize)throws Exception;

    //获取用户记录数
    int selectUserCount(@Param("userName") String userName, @Param("id") Integer id)throws Exception;

    //获取用户信息
    ShUser selectUser(@Param("userId") Integer userId)throws Exception;

    //添加用户信息
    int insertUser(ShUser shUser)throws Exception;

    //更新用户信息
    int updateUser(ShUser shUser)throws Exception;

    //删除用户信息
    int deleteUser(@Param("userId")Integer id)throws Exception;

}
